package com.gitee.yannzh.rune.example.crud.params;

import com.gitee.yannzh.rune.extension.mp.query.BaseQuery;
import com.gitee.yannzh.rune.support.crud.query.Condition;
import com.gitee.yannzh.rune.support.crud.annotation.Query;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserParam extends BaseQuery {

    private Long id;

    private Long departmentId;

    @Query(condition= Condition.LIKE)
    private String username;

    private String mobile;

    @Override
    public Serializable getKeyValue() {
        return this.id;
    }
}
